package com.tencreat.domain.mall.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 店铺-商品大厅
 * @author zixin
 */
@Data
public class MallStoreGoodsVO {

    @ApiModelProperty("商品id")
    private Long id;

    @ApiModelProperty("商品名称")
    private String name;

    @ApiModelProperty("商品图片")
    private String picUrl;

    @ApiModelProperty("商品分类名称")
    private String categoryName;

    @ApiModelProperty(value = "商品分类ID")
    private Long categoryId;

    @ApiModelProperty("顶级分类分类名称")
    private String topCategoryName;

    @ApiModelProperty(value = "顶级分类ID")
    private Long topCategoryId;

    @ApiModelProperty("供应价")
    private BigDecimal supplyPrice;

    @ApiModelProperty("销售价")
    private BigDecimal retailPrice;

    @ApiModelProperty("销量")
    private Integer commoditySales;

    @ApiModelProperty("库存")
    private Integer inventory;

    @ApiModelProperty("商品状态,0|下架,1|上架")
    private Integer status;

    @ApiModelProperty("创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("申请时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("店铺名称")
    private String storeName;

    @ApiModelProperty("店铺手机号")
    private String storePhone;

    @ApiModelProperty("审批意见")
    private String auditOpinion;

    @ApiModelProperty("审批状态,0|待审核,1|已通过,2|已驳回")
    private Integer auditStatus;

    @ApiModelProperty("抵扣金额")
    private BigDecimal deductPrice;

    @ApiModelProperty("商家id")
    private Long storeId;
//category_id

    @ApiModelProperty(value = "店铺二级分类ID")
    private Long storeCategoryId;

    @ApiModelProperty(value = "店铺一级分类ID")
    private Long storeCategoryPid;

    @ApiModelProperty(value = "套餐分类id")
    private Long setmealId;
}
